﻿/****************************** Module Header ******************************\
 * Module Name:  tGeneralFeedback.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
    /// <summary>
    /// 通用-消息反馈 数据实体类
    /// </summary>
    [DBTable(Common = "通用-消息反馈")]
    public class tGeneralFeedback
    {
        /// <summary>
        /// Guid编号
        /// </summary>
        public Guid ID { get { return _ID ?? default(Guid); } set { _ID = value; } }

        [DBColumn(Alias = "Guid编号", IsKey = true, DefaultValue = "newid()")]
        private Guid? _ID;

        /// <summary>
        /// 消息编号
        /// </summary>
        public string SerialNo { get { return _SerialNo; } set { _SerialNo = value; } }

        [DBColumn(Alias = "消息编号", Length = "32")]
        private string _SerialNo;

        /// <summary>
        /// 消息标题
        /// </summary>
        public string Title { get { return _Title; } set { _Title = value; } }

        [DBColumn(Alias = "消息标题", CanBeNull = true, Length = "32")]
        private string _Title;

        /// <summary>
        /// 消息内容
        /// </summary>
        public string Content { get { return _Content; } set { _Content = value; } }

        [DBColumn(Alias = "消息内容", CanBeNull = true, Length = "Max")]
        private string _Content;

        /// <summary>
        /// 用户帐号
        /// </summary>
        public string UserName { get { return _UserName; } set { _UserName = value; } }

        [DBColumn(Alias = "用户帐号", CanBeNull = true, Length = "32")]
        private string _UserName;

        /// <summary>
        /// 联系人电子邮件
        /// </summary>
        public string Email { get { return _Email; } set { _Email = value; } }

        [DBColumn(Alias = "联系人电子邮件", CanBeNull = true, Length = "32")]
        private string _Email;

        /// <summary>
        /// 联系人手机号码
        /// </summary>
        public string Mobilephone { get { return _Mobilephone; } set { _Mobilephone = value; } }

        [DBColumn(Alias = "联系人手机号码", CanBeNull = true, Length = "32")]
        private string _Mobilephone;

        /// <summary>
        /// 父级编号(主题编号)
        /// </summary>
        public Guid ParentID { get { return _ParentID ?? default(Guid); } set { _ParentID = value; } }

        [DBColumn(Alias = "上级编号", Common = "主题编号", CanBeNull = true)]
        private Guid? _ParentID;

        /// <summary>
        /// 分类编号
        /// </summary>
        public Guid CatalogID { get { return _CatalogID ?? default(Guid); } set { _CatalogID = value; } }

        [DBColumn(Alias = "分类编号", CanBeNull = true)]
        private Guid? _CatalogID;

        /// <summary>
        /// 项目Guid编号(如商品编号)
        /// </summary>
        public Guid ItemID { get { return _ItemID ?? default(Guid); } set { _ItemID = value; } }

        [DBColumn(Alias = "项目Guid编号", Common = "如商品编号", CanBeNull = true)]
        private Guid? _ItemID;

        /// <summary>
        /// 项目所属表名称
        /// </summary>
        public string ItemType { get { return _ItemType; } set { _ItemType = value; } }

        [DBColumn(Alias = "项目所属表名称", CanBeNull = true, Length = "32")]
        private string _ItemType;

        /// <summary>
        /// 是否在前台显示
        /// </summary>
        public bool IsDisplay { get { return _IsDisplay ?? default(bool); } set { _IsDisplay = value; } }

        [DBColumn(Alias = "是否在前台显示", DefaultValue = "0")]
        private bool? _IsDisplay;

        /// <summary>
        /// 备注说明
        /// </summary>
        public string Remark { get { return _Remark; } set { _Remark = value; } }

        [DBColumn(Alias = "备注说明", CanBeNull = true, Length = "Max")]
        private string _Remark;

        /// <summary>
        /// 扩展标签
        /// </summary>
        public string ExTags { get { return _ExTags; } set { _ExTags = value; } }

        [DBColumn(Alias = "扩展标签", Length = "16")]
        private string _ExTags;

        /// <summary>
        /// 状态
        /// </summary>
        public short State { get { return _State ?? default(short); } set { _State = value; } }

        [DBColumn(Alias = "状态", DefaultValue = "0")]
        private short? _State;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

        [DBColumn(Alias = "创建时间", DefaultValue = "getdate()")]
        private DateTime? _CreatedTime;

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime ModifiedTime { get { return _ModifiedTime ?? default(DateTime); } set { _ModifiedTime = value; } }

        [DBColumn(Alias = "最后更新时间", CanBeNull = true)]
        private DateTime? _ModifiedTime;

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }

        [DBColumn(Alias = "是否删除", DefaultValue = "0")]
        private bool? _IsDeleted;

        /// <summary>
        /// 网站标签
        /// </summary>
        public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }

        [DBColumn(Alias = "网站标签", CanBeNull = true, Length = "16")]
        private string _SiteTag;

    }
}
